package com.qianfeng.dbsm.admin.serviceimpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianfeng.dbsm.admin.dao.TbUserAddressDao;
import com.qianfeng.dbsm.admin.entity.TbUserAddress;
import com.qianfeng.dbsm.admin.service.TbUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (TbUserAddress)表服务实现类
 *
 * @author makejava
 * @since 2022-11-17 19:22:57
 */
@Service("tbUserAddressService")
public class TbUserAddressServiceImpl extends ServiceImpl<TbUserAddressDao, TbUserAddress> implements TbUserAddressService {

    @Autowired
    TbUserAddressDao tbUserAddressDao;


    /**
     * 根据tb_user_address表的ID查询返回地址对象
     * @param id
     * @return
     */
    public TbUserAddress selectAddressById(Integer id){
        TbUserAddress tbUserAddress = tbUserAddressDao.selectById(id);
        return tbUserAddress;
    }

}

